package cn.edu.cjw.APMFP.user.DAO;

import java.util.ArrayList;

import cn.edu.cjw.APMFP.user.pojo.User;

public interface UserDAO {

	//展示所有员工
	public ArrayList<User> showAll() throws Exception;
	
	// 新增员工 and 修改员工信息
	public boolean AddAndUpdateUser(User user) throws Exception;

	// 删除员工
	public boolean RemoveUser(User user) throws Exception;

	// 根据工号搜索员工
	public User SearchUserByAccount(String account) throws Exception;
	
	//根据角色搜索员工
	public ArrayList<User> SearchUsersByRole(String rname) throws Exception;

	// 根据姓名搜索员工
	public ArrayList<User> SearchUserByName(String name) throws Exception;


}
